#ifndef LINUXCONTEXTINFO_H_INCLUDED
#define LINUXCONTEXTINFO_H_INCLUDED
#include"jawt.h"
#include <GL/gl.h>
#include <GL/glx.h>
#include <GL/glu.h>

 int convertToBPE(int bpp) {
	int bpe;
	switch (bpp) {
		case 0:
			bpe = 0;
			break;
		case 32:
		case 24:
			bpe = 8;
			break;
		case 16: /* Fall through */
		default:
			bpe = 4;
			break;
	}
	return bpe;
}




class contextinfo
{
    public:
GLXContext cx;
Display *display;
GLXDrawable window;
JAWT awt;

int i;
};

#endif // LINUXCONTEXTINFO_H_INCLUDED
